import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state: {
    router: constantRoutes
  },
  mutations: {
    setRoutes(state, otherRoutes) {
      state.router = [...constantRoutes, ...otherRoutes]
    },
    delrouter(state) {
      state.router = []
    }
  }
}
